package com.joysuch.wwyt.edu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joysuch.wwyt.edu.entity.EduExamRecord;
import com.joysuch.wwyt.edu.entity.EduExamUserScope;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface EduExamUserScopeMapper extends BaseMapper<EduExamUserScope> {
    List<EduExamRecord> selectCountByDepartId(Long departId);

    List<EduExamRecord> selectCountByJobId(Long jobId);

    int selectExamCount(@Param("userId") Long userId, @Param("jobId") Long jobId, @Param("departId") Long departId,
                        @Param("startTime") Date startTime, @Param("endTime")  Date endTime);

    List<EduExamUserScope> scopeUpdate();

    void saveAll(@Param("examUserScopes") List<EduExamUserScope> examUserScopes);

    EduExamUserScope selectByObjType();
}
